using System;
using System.Linq.Expressions;
using BulkUploadGovernanceFiles.Models;

namespace BulkUploadGovernanceFiles.MongoSpecification
{
    public class GovernanceInsightInputFileHaveCompanyId : CompositeSpecification<GovernanceInsightInputFile>
    {
        private readonly Expression<Func<GovernanceInsightInputFile, bool>> _specExpression;

        public GovernanceInsightInputFileHaveCompanyId(Guid companyId)
        {
            _specExpression = p => p.CompanyId == companyId;
        }

        public override Expression<Func<GovernanceInsightInputFile, bool>> SpecExpression
        {
            get { return _specExpression; }
        }
    }
}